﻿using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace Architecture.Domian.Entity
{
    /// <summary>
    /// 用户角色关系表
    /// </summary>
    [Table("user_role_relation")]
    public class UserRoleRelation
    {
        /// <summary>
        /// 关系Id
        /// </summary>
        [Key]
        public int RelationId { get; set; }
        /// <summary>
        /// 用户Id
        /// </summary>
        public int UserId { get; set; }
        /// <summary>
        /// 角色Id
        /// </summary>
        public int RoleId { get; set; }
    }
}
